#!/bin/bash

PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH
PHPDOC=phpDocumentor.phar
APIPATH=`dirname $0`/
SRCPATH=`dirname $0`/../php-helper/src

${PHPDOC} project:run --title "php-helper" --template "clean" -t ${APIPATH} -f ${SRCPATH}/helper.php
rm -Rf ${APIPATH}/phpdoc-cache-*
rm -Rf ${APIPATH}/.htaccess
sed -i 's/.*googleapis.*//' ${APIPATH}/css/template.css

